<template>
  <md-card class="md-card-profile">
    <div class="md-card-avatar">
      <img class="img" :src="this.src" />
    </div>

    <md-card-content>
      <h6 class="category text-gray">CEO / Co-Founder</h6>
      <h4 class="card-title">Alec Thompson</h4>
      <p class="card-description">
        Don't be scared of the truth because we need to restart the human
        foundation in truth And I love you like Kanye loves Kanye I love Rick
        Owens’ bed design but the back is...
      </p>
      <md-button class="md-round md-success" @click="getImg">Follow</md-button>
    </md-card-content>
  </md-card>
</template>
<script>
export default {
  name: "user-card",
  props: {
    cardUserImage: {
      type: String,
      default: require("@/assets/img/faces/marc.jpg"),
    },
  },
  data() {
    return {
      src: require("@/assets/img/faces/marc.jpg"),
    };
  },
  created() {
    // var that = this;
    // this.$axios
    //   .get("http://zdz0132.natapp1.cc/video_viewer")
    //   .then((response)=> {
    //     alert("111");
    //     // that.response = response.data;
    //     // this.tableData = response.data.data.info;
    //     console.log(response);
    //   })
    //   .catch(function (error) {
    //     alert("222");
    //     console.log(error);
    //   });
  },
  methods: {
    getImg() {
      alert("333");
      var that = this;
      this.$axios
        .get("http://zdz0132.natapp1.cc/video_viewer")
        .then((response) => {
          alert("111");
          // that.response = response.data;
          // this.tableData = response.data.data.info;
          console.log(response);
        })
        .catch(function (error) {
          alert("222");
          console.log(error);
        });
    },
  },
};
</script>
<style></style>
